package com.lyun.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lyun.pojo.VideoConcern;

import java.util.List;
import java.util.Set;

public interface VideoConcernService extends IService<VideoConcern> {
    void saveVideoConcern(Long selfId, Long userId);

    void removeByUserIdAndSelfId(Long selfId, Long userId);

    boolean getAlreadyConcernBySelfIdAndUserId(Long selfId, Long userId);

    /**
     * 获取selfId和ids中的关注关系。
     * @param selfId
     * @param ids
     * @return
     */
    Set<Long> getVideoConcernByUserIdWithAuthorId(Long selfId, List<Long> ids);
}
